package com.twu.biblioteca;

/**
 * Created by nikeshv on 26/02/14.
 */
    public class Library {

    Registry registry = new Registry();

    public void displayBooks(){
        System.out.println(registry.bookDisplay());
        }

    public void checkOutOperation(String title){
        if(registry.checkOutBook(title)){
            System.out.println("You may have the book. Have a nice time reading it!");
        }
        else System.out.println("Sorry, such a book does not exist.");
    }

    public void returnBookOperation(String title){
        if(registry.returnBook(title)){
            System.out.println("The book has been returned. Thank you.");
        }
        else System.out.println("Sorry. That's an invalid book.");
    }
}
